projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd6074
)
* lisp/vc/diff-mode.el (diff-syntax-fontify-props): Use font-lock-ensure
author
Juri Linkov
<juri@linkov.net>
Wed, 19 Dec 2018 21:55:32 +0000
(23:55 +0200)
committer
Juri Linkov
<juri@linkov.net>
Wed, 19 Dec 2018 21:55:32 +0000
(23:55 +0200)
unconditionally. (Bug#33798)
lisp/vc/diff-mode.el
patch
|
blob
|
history
diff --git
a/lisp/vc/diff-mode.el
b/lisp/vc/diff-mode.el
index 043d22d14b33a85543f825123032cfcbb757a37c..dd3a04b4e75164f65190a4eefffefc2c647626b7 100644
(file)
--- a/
lisp/vc/diff-mode.el
+++ b/
lisp/vc/diff-mode.el
@@
-2525,14
+2525,7
@@
hunk text is not found in the source file."
(when (and beg end)
(goto-char beg)
- (if file
- ;; In a temporary or cached buffer
- (when (text-property-not-all beg end 'fontified t)
- (save-excursion
- (font-lock-fontify-region beg end)
- (put-text-property beg end 'fontified t)))
- ;; In an existing buffer
- (font-lock-ensure beg end))
+ (font-lock-ensure beg end)
(while (< (point) end)
(let* ((bol (point))